package com.questionnaire.pojo;

import java.util.Date;
import java.util.List;

public class Paper extends BaseModel {

    private  String paperId;

    private  String paperTitle;

    private Date startTime;

    private  Date endTime;

    private  String ownerId;

    private  String paperType;

    //自增长短ID
    private  Integer shortId;

    //记录状态0正常-1删除
    private  Integer recordState;

    //记录创建时间
    private  Date createTime;

    //记录最后更新时间
    private  Date updateTime;

    //最后操作人
    private  String lastOperator;

    //最后操作人IP
    private  String lastOperatorIp;

    //问卷包含的题目
    private List<Question> questions;

    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    public String getPaperId() {
        return paperId;
    }

    public void setPaperId(String paperId) {
        this.paperId = paperId;
    }

    public String getPaperTitle() {
        return paperTitle;
    }

    public void setPaperTitle(String paperTitle) {
        this.paperTitle = paperTitle;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getPaperType() {
        return paperType;
    }

    public void setPaperType(String paperType) {
        this.paperType = paperType;
    }

    public Integer getShortId() {
        return shortId;
    }

    public void setShortId(Integer shortId) {
        this.shortId = shortId;
    }

    public Integer getRecordState() {
        return recordState;
    }

    public void setRecordState(Integer recordState) {
        this.recordState = recordState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getLastOperator() {
        return lastOperator;
    }

    public void setLastOperator(String lastOperator) {
        this.lastOperator = lastOperator;
    }

    public String getLastOperatorIp() {
        return lastOperatorIp;
    }

    public void setLastOperatorIp(String lastOperatorIp) {
        this.lastOperatorIp = lastOperatorIp;
    }

    @Override
    public String toString() {
        return "Paper{" +
                "paperId='" + paperId + '\'' +
                ", paperTitle='" + paperTitle + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", ownerId='" + ownerId + '\'' +
                ", paperType='" + paperType + '\'' +
                ", shortId=" + shortId +
                ", recordState=" + recordState +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", lastOperator='" + lastOperator + '\'' +
                ", lastOperatorIp='" + lastOperatorIp + '\'' +
                ", questions=" + questions +
                '}';
    }
}
